package com.lottery.game.controller.v2.pay.requestVO;

import com.lottery.game.common.BaseObject;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;

/**
 * @Description
 * @Classname MessageCodeTO
 * @Date 2019/4/25 13:40
 * @Author liusc <liushicheng1993@vip.qq.com>
 * @Version 1.0
 */
@Data
@ApiModel(description = "短信验证实体")
@AllArgsConstructor
@NoArgsConstructor
public class MessageCodeVO extends BaseObject {

    @NotEmpty(message = "接受短信验证码手机号不能为空")
    @ApiModelProperty(name = "phone", value = "短信验证手机号", example = "15348304228",required = true)
    private String phone;

    @NotEmpty(message = "短信验证码不能为空")
    @ApiModelProperty(name = "code", value = "短信验证码，用户输入", example = "9999",required = true)
    private String code;

}
